package com.zzptc.shop.service;

import com.zzptc.shop.Factory.DaoFactoryImp;
import com.zzptc.shop.dao.ProductDao;
import com.zzptc.shop.vo.Good;
import com.zzptc.shop.vo.VO;

import java.sql.SQLException;
import java.util.List;

public class ProductServiceImp implements IService {
    @Override
    public boolean inser(VO vo) throws SQLException {
        return false;
    }

    @Override
    public List getAll() throws SQLException {
        List<Good>list=null;
        try {
            ProductDao dao=(ProductDao) DaoFactoryImp.getInstance().createDAO("productdao");
        } catch (Exception e) {
            e.printStackTrace();
        }
        return list;
    }

    @Override
    public boolean deleteByID(VO vo) throws SQLException {
        return false;
    }

    @Override
    public boolean update(VO vo) throws SQLException {
        return false;
    }

    @Override
    public VO getByID(VO vo) throws SQLException {
        return null;
    }
}
